package com.wms.dao;

import com.wms.domain.RoleDomain;
import org.mapstruct.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface RoleMapper {
    public void addRole(RoleDomain roleDomain);

    public void roleDelete(Long id);

    public int getRoleCount(RoleDomain roleDomain);
    public void roleUpdate(RoleDomain roleDomain);
    public List<RoleDomain> getRolePage(RoleDomain roleDomain);


    public void deleteMenu_permissionsByRole_id(Long role_id);

    public void addMenu_permissions(Long role_id,Long menu_id);

    public List<Map<String, Object>> getMenu_permissionsView(Long role_id);

}
